import React, { PureComponent } from "react";
import PropTypes from "prop-types";

class Detail3 extends PureComponent {
  render() {
    const location = this.props.location;
    console.log(location);

    return (
      <div>
        <h2>name：{location.state.name}</h2>
        <h2>height：{location.state.height}</h2>
        <h2>age：{location.state.age}</h2>
      </div>
    );
  }
}

Detail3.propTypes = {};

export default Detail3;
